<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['安装管理[环卫]','量车数据汇总']" icon="fa fa-newspaper-o" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span><h2>量车数据汇总</h2></header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn" style="width: calc(100% - 306px);">
							    <div class="top_module top_module_box">
                                    <span class="top_module_label module_text">公司名称</span>
                                    <sa-company-tree companyTreeId="companyTree"  (companySelected)="companySelected($event)"></sa-company-tree>
                                </div>
							    
							    <div class="top_module">
                                    <span class="module_text">车牌号码</span>
                                    <sa-select2 select2ElementID="carSelect2" (optionSelected)="carSelected($event)" [dataList]="carList"  [paramFormat]="paramFormat" matchSearch="true"></sa-select2>
                                </div>
								<div class="top_module">
									<span class="module_text">录入人员</span>
									<div class="s_hover_box">
										<select   class="select2"  id="userNameSelect2" style="width: 150px;">
											<option value=''></option>
										</select>
										<div class="s_del_icon" (click)='delUserName()'>x</div>
									</div>
								</div>
								<div class="top_module top_module_box">
                                    <span class="top_module_label module_text">零件加工方案</span>
                                    <select class="module_inp" name="componentType"  [(ngModel)]="tableParam.schemeMatch">
                                        <option value="">全部</option>
                                        <option value="0">未匹配</option>
                                        <option value="1">无方案</option>
                                        <option value="2">匹配不全</option>
                                        <option value="3">已匹配</option>
                                    </select>
                                </div>
                                <div class="top_module top_module_box">
                                    <span class="top_module_label module_text">审核状态</span>
                                    <select class="module_inp" name="componentType"  [(ngModel)]="tableParam.auditStatus">
                                        <option value="">全部</option>
                                        <option value="0">未审核</option>
                                        <option value="1">审核通过</option>
                                        <option value="2">审核不通过</option>
                                    </select>
                                </div>
                                <div class="selectDate top_module">
                                    <table-select-date [notInit]='true' (outerTime)="getSelectTableTime($event)" ></table-select-date>
                                </div>
								<button class="btn btn-primary" (click)="table_search()">查询</button>
								<button class="btn btn-primary" (click)="table_export()">导出</button>
								<button class="btn btn-primary" (click)="drawingsMatch()">匹配图纸</button>
								<button class="btn btn-primary" (click)="exportMatch(exportProjectModal)">导出加工</button>
							</div>
							<div class="right top-search" style="width: 306px;">
								<input type="text" [(ngModel)]="tableParam.searchKey" (change)="table_search()" class="search-input" placeholder="公司名称、车牌号、车头品牌、说明、录入人员">
								<span class="top-search-box">
							        <button class="top-search-btn" type="button" (click)="table_search()"> <i class="fa fa-search"></i></button>
							    </span>
							</div>
						</div>
						<div class="" style="">
                            <ul class="nav nav-tabs" style="padding-left:12px;background-image: linear-gradient(#F1F5FD, #E9F0FF);padding: 0;">
                                <li class="active s-lis"><a data-toggle="tab" href="#carType0213" (click)="btnClick('0213')">侧挂链条 </a></li>
                                <li class="s-lis"><a data-toggle="tab" href="#carType0214" (click)="btnClick('0214')">侧挂拉杆</a></li>
                                <li class="s-lis"><a data-toggle="tab" href="#carType0211" (click)="btnClick('0211')">后挂双桶</a></li>
                            </ul>
                        </div>
                        
                        <div class="tab-content">
                            <div class="tab-pane active" id="carType0213">
                                <div class="table_scroll">
                                    <table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                        <thead>
                                            <tr>
                                                <th>公司名称</th>
                                                <th>车牌号码</th>
                                                <th>车头品牌</th>
                                                <th>车尾架子</th>
                                                <th>车辆铭牌</th>
                                                <th>铁板到链条距离[mm]</th>
                                                <th>链条宽度[mm]</th>
                                                <th>量车尺寸</th>
                                                <!--<th>1、横梁从左到右[mm]</th>
                                                <th>2、挂齿顶到下底高[mm]</th>
                                                <th>3、挂齿顶到下横梁底[mm]</th>
                                                <th>4、压板底面到下底高[mm]</th>
                                                <th>5、铁板左到右长度[mm]</th>-->
                                                <th>其他说明</th>
                                                <th>零件加工方案</th>
                                                <th>审核状态</th>
                                                <th>录入人员</th>
                                                <th>录入时间</th>
                                                <th>量车地址</th>
                                                <th>审核人员</th>
                                                <th>审核时间</th>
                                                <th>更新人员</th>
                                                <th>更新时间</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr *ngFor="let row of tableData; let i = index" [attr.data-index]="i">
                                                <td>{{row.companyName}}</td>
                                                <td>
                                                    <span>{{row.carNumber}}</span>
                                                    <button type="button" *ngIf="row.carNumberUrl" (click)="imgView(row.carNumberUrl,'车牌号码',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <span>{{row.carHeadBrand}}</span>
                                                    <button type="button" *ngIf="row.carHeadBrandUrl" (click)="imgView(row.carHeadBrandUrl,'车头品牌',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <button type="button" *ngIf="row.carTailShelfUrl" (click)="imgView(row.carTailShelfUrl,'车尾架子',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <button type="button" *ngIf="row.carNameplateUrl" (click)="imgView(row.carNameplateUrl,'车辆铭牌',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <span [ngClass]="{red: row.fixDistance<50}">{{row.fixDistance}}</span>
                                                    <button type="button" *ngIf="row.fixDistanceUrl" (click)="imgView(row.fixDistanceUrl,'铁板到链条距离',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <span>{{row.chainWidth}}</span>
                                                    <button type="button" *ngIf="row.chainWidthUrl" (click)="imgView(row.chainWidthUrl,'链条宽度',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <button type="button" (click)="imgListView(row,'0213',ImgListModal)">查看</button>
                                                </td>
                                                <!--<td *ngFor="let lis of row.measureInfoList">
                                                    <span>{{lis.length}}</span>
                                                    <button type="button" (click)="imgView(lis.imageUrl)">查看</button>
                                                </td>-->
                                                <td>{{row.remark}}</td>
                                                <td>
                                                    <span *ngIf="row.schemeMatch == 0" class="grey">未匹配</span>
                                                    <span *ngIf="row.schemeMatch == 1" class="red">无方案</span>
                                                    <span *ngIf="row.schemeMatch == 2" class="orange">匹配不全</span>
                                                    <span *ngIf="row.schemeMatch == 3" class="green">已匹配</span>
                                                    <button type="button" (click)="matchView(row,matchDetailModal,'侧挂链条')" *ngIf="row.schemeMatch == 1 ||row.schemeMatch == 2 || row.schemeMatch == 3">查看</button>
                                                </td>
                                                <td>
                                                    <span *ngIf="row.auditStatus == 0" class="orange">未审核</span>
                                                    <span *ngIf="row.auditStatus == 1" class="green">通过</span>
                                                    <span *ngIf="row.auditStatus == 2" class="red">不通过</span>
                                                </td>
                                                <td>{{row.enterMan}}</td>
                                                <td>{{row.createTime}}</td>
                                                <td>{{row.address}}</td>
                                                <td>{{row.auditUser}}</td>
                                                <td>{{row.auditDate}}</td>
                                                <td>{{row.updateMan}}</td>
                                                <td>{{row.updateTime}}</td>
                                                <td>
                                                    <button type="button" (click)="matchRow(row)">匹配图纸</button>
                                                    <button type="button" (click)="checkRow(row,auditModal)">审核</button>
                                                    <button type="button" (click)="editRow(row,CarMeasureModal)">编辑</button>
                                                    <button type="button" (click)="deleteRow(row)">删除</button>
                                                </td>
                                                
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="table-fix clearfix">
                                    <paginator [totalRecords]="totalCount"
                                           [rows]="pageSize"
                                           [currentPage]="curPage - 1"
                                           (onPageChange)="paginate($event)">
                                    </paginator>
                                    <button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
                                </div>
                                
                            </div>
                            
                            <div class="tab-pane" id="carType0214">
                                <div class="table_scroll">
                                    <table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                        <thead>
                                            <tr>
                                                <th>公司名称</th>
                                                <th>车牌号码</th>
                                                <th>车头品牌</th>
                                                <th>车尾架子</th>
                                                <th>车辆铭牌</th>
                                                <th>量车尺寸</th>
                                                <!--<th>1、铁架内高[mm]</th>
                                                <th>2、上横梁顶到下底高[mm]</th>
                                                <th>3、挂齿顶到下底高[mm]</th>
                                                <th>4、压板底到下底高[mm]</th>
                                                <th>5、挂齿总长度[mm]</th>
                                                <th>6、铁板左到右长度[mm]</th>-->
                                                <th>其他说明</th>
                                                <th>零件加工方案</th>
                                                <th>审核状态</th>
                                                <th>录入人员</th>
                                                <th>录入时间</th>
                                                <th>量车地址</th>
                                                <th>审核人员</th>
                                                <th>审核时间</th>
                                                <th>更新人员</th>
                                                <th>更新时间</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr *ngFor="let row of tableData; let i = index" [attr.data-index]="i">
                                                <td>{{row.companyName}}</td>
                                                <td>
                                                    <span>{{row.carNumber}}</span>
                                                    <button type="button" *ngIf="row.carNumberUrl" (click)="imgView(row.carNumberUrl,'车牌号码',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <span>{{row.carHeadBrand}}</span>
                                                    <button type="button" *ngIf="row.carHeadBrandUrl" (click)="imgView(row.carHeadBrandUrl,'车头品牌',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <button type="button" *ngIf="row.carTailShelfUrl" (click)="imgView(row.carTailShelfUrl,'车尾架子',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <button type="button" *ngIf="row.carNameplateUrl" (click)="imgView(row.carNameplateUrl,'车辆铭牌',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <button type="button" (click)="imgListView(row,'0214',ImgListModal)">查看</button>
                                                </td>
                                                <!--<td *ngFor="let lis of row.measureInfoList">
                                                    <span>{{lis.length}}</span>
                                                    <button type="button" (click)="imgView(lis.imageUrl)">查看</button>
                                                </td>-->
                                                <td>{{row.remark}}</td>
                                                <td>
                                                    <span *ngIf="row.schemeMatch == 0" class="grey">未匹配</span>
                                                    <span *ngIf="row.schemeMatch == 1" class="red">无方案</span>
                                                    <span *ngIf="row.schemeMatch == 2" class="orange">匹配不全</span>
                                                    <span *ngIf="row.schemeMatch == 3" class="green">已匹配</span>
                                                    <button type="button" (click)="matchView(row,matchDetailModal,'侧挂拉杆')" *ngIf="row.schemeMatch == 1 ||row.schemeMatch == 2 || row.schemeMatch == 3">查看</button>
                                                </td>
                                                <td>
                                                    <span *ngIf="row.auditStatus == 0" class="orange">未审核</span>
                                                    <span *ngIf="row.auditStatus == 1" class="green">通过</span>
                                                    <span *ngIf="row.auditStatus == 2" class="red">不通过</span>
                                                </td>
                                                <td>{{row.enterMan}}</td>
                                                <td>{{row.createTime}}</td>
                                                <td>{{row.address}}</td>
                                                <td>{{row.auditUser}}</td>
                                                <td>{{row.auditDate}}</td>
                                                <td>{{row.updateMan}}</td>
                                                <td>{{row.updateTime}}</td>
                                                <td>
                                                    <button type="button" (click)="matchRow(row)">匹配图纸</button>
                                                    <button type="button" (click)="checkRow(row,auditModal)">审核</button>
                                                    <button type="button" (click)="editRow(row,CarMeasureModal)">编辑</button>
                                                    <button type="button" (click)="deleteRow(row)">删除</button>
                                                </td>
                                                
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="table-fix clearfix">
                                    <paginator [totalRecords]="totalCount"
                                           [rows]="pageSize"
                                           [currentPage]="curPage - 1"
                                           (onPageChange)="paginate($event)">
                                    </paginator>
                                    <button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
                                </div>
                                
                            </div>
                            
                            <div class="tab-pane" id="carType0211">
                                <div class="table_scroll">
                                    <table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                        <thead>
                                            <tr>
                                                <th>公司名称</th>
                                                <th>车牌号码</th>
                                                <th>车头品牌</th>
                                                <th>车尾品牌</th>
                                                <th>车尾架子</th>
                                                <th>车辆铭牌</th>
                                                <th>上桶速度[秒]</th>
                                                <th>下桶速度[秒]</th>
                                                <th>量车尺寸</th>
                                                <th>其他说明</th>
                                                <!--<th>1、圆轴底到下端顶[mm]</th>
                                                <th>2、左铁架内高[mm]</th>
                                                <th>3、左挂齿到下端底[mm]</th>
                                                <th>4、左挂齿总长度[mm]</th>
                                                <th>5、下横梁高度[mm]</th>
                                                <th>6、上横梁高度[mm]</th>
                                                <th>7、左端到第2竖梁[mm]</th>
                                                <th>8、第2竖梁到第3竖梁[mm]</th>
                                                <th>9、第3竖梁到右端[mm]</th>
                                                <th>10、底部宽度[mm]</th>
                                                <th>11、顶部宽度[mm]</th>
                                                <th>12、圆轴表面到外表面[mm]</th>
                                                <th>13、圆轴表面到上横梁[mm]</th>
                                                <th>14、圆轴表面到下横梁[mm]</th>-->
                                                <th>零件加工方案</th>
                                                <th>审核状态</th>
                                                <th>录入人员</th>
                                                <th>录入时间</th>
                                                <th>量车地址</th>
                                                <th>审核人员</th>
                                                <th>审核时间</th>
                                                <th>更新人员</th>
                                                <th>更新时间</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr *ngFor="let row of tableData; let i = index" [attr.data-index]="i">
                                                <td>{{row.companyName}}</td>
                                                <td>
                                                    <span>{{row.carNumber}}</span>
                                                    <button type="button" *ngIf="row.carNumberUrl" (click)="imgView(row.carNumberUrl,'车牌号码',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <span>{{row.carHeadBrand}}</span>
                                                    <button type="button" *ngIf="row.carHeadBrandUrl" (click)="imgView(row.carHeadBrandUrl,'车头品牌',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <span>{{row.carTailBrand}}</span>
                                                    <button type="button" *ngIf="row.carTailBrandUrl" (click)="imgView(row.carTailBrandUrl,'车尾品牌',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <button type="button" *ngIf="row.carTailShelfUrl" (click)="imgView(row.carTailShelfUrl,'车尾架子',ImgModal)">查看</button>
                                                </td>
                                                <td>
                                                    <button type="button" *ngIf="row.carNameplateUrl" (click)="imgView(row.carNameplateUrl,'车辆铭牌',ImgModal)">查看</button>
                                                </td>
                                                <td>{{row.upBucketTime}}</td>
                                                <td>{{row.downBucketTime}}</td>
                                                <td>
                                                    <button type="button" (click)="imgListView(row,'0211',ImgListModal)">查看</button>
                                                </td>
                                                <!--<td *ngFor="let lis of row.measureInfoList">
                                                    <span>{{lis.length}}</span>
                                                    <button type="button" (click)="imgView(lis.imageUrl)">查看</button>
                                                </td>-->
                                                <td>{{row.remark}}</td>
                                                <td>
                                                    <span *ngIf="row.schemeMatch == 0" class="grey">未匹配</span>
                                                    <span *ngIf="row.schemeMatch == 1" class="red">无方案</span>
                                                    <span *ngIf="row.schemeMatch == 2" class="orange">匹配不全</span>
                                                    <span *ngIf="row.schemeMatch == 3" class="green">已匹配</span>
                                                    <button type="button" (click)="matchView(row,matchDetailModal,'后挂双桶')" *ngIf="row.schemeMatch == 1 ||row.schemeMatch == 2 || row.schemeMatch == 3">查看</button>
                                                </td>
                                                <td>
                                                    <span *ngIf="row.auditStatus == 0" class="orange">未审核</span>
                                                    <span *ngIf="row.auditStatus == 1" class="green">通过</span>
                                                    <span *ngIf="row.auditStatus == 2" class="red">不通过</span>
                                                </td>
                                                <td>{{row.enterMan}}</td>
                                                <td>{{row.createTime}}</td>
                                                <td>{{row.address}}</td>
                                                <td>{{row.auditUser}}</td>
                                                <td>{{row.auditDate}}</td>
                                                <td>{{row.updateMan}}</td>
                                                <td>{{row.updateTime}}</td>
                                                <td>
                                                    <button type="button" (click)="matchRow(row)">匹配图纸</button>
                                                    <button type="button" (click)="checkRow(row,auditModal)">审核</button>
                                                    <button type="button" (click)="editRow(row,CarMeasureModal)">编辑</button>
                                                    <button type="button" (click)="deleteRow(row)">删除</button>
                                                </td>
                                                
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="table-fix clearfix">
                                    <paginator [totalRecords]="totalCount"
                                           [rows]="pageSize"
                                           [currentPage]="curPage - 1"
                                           (onPageChange)="paginate($event)">
                                    </paginator>
                                    <button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
                                </div>
                            </div>
                        </div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
	<!-- 图片查看   弹窗-->
    <section bsModal #ImgModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="imgClose(ImgModal)" aria-label="Close"><span aria-hidden="true">&times;</span></button>     
                    <h4 class="modal-title">{{activeImg.title}}图片</h4>
                </div>
                <div class="modal-body" style="min-height: 200px;">
                    <div class="row form-horizontal imagesInfo activeImg">
                        <div *ngIf="activeImg.url" style="text-align: center; max-height: 480px;">
                            <img [src]="activeImg.url" [alt]="activeImg.title" style="max-height: 420px;width: auto;height: 100%;" (click)="bigimg('activeImg')"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- 图片查看 弹窗end-->
    
    <!-- 量车尺寸图片查看   弹窗-->
    <section bsModal #ImgListModal="bs-modal" id="ImgListModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg" style="width: 900px;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="imgListClose(ImgListModal)" aria-label="Close"><span aria-hidden="true">&times;</span></button>     
                    <h4 class="modal-title">{{activeImgList.title}}量车尺寸图片</h4>
                </div>
                <div class="modal-body" style="min-height: 200px;">
                    <div class="row form-horizontal imagesInfo">
                        <div>
                            <div class="col-xs-6 module" style="border-right: 1px solid #ccc;">
                                <div style="height: 100%;overflow: auto;">
                                    <div class="templateImg">
                                        <div class="img-box" *ngFor="let item of activeImgList.templateImg; let i = index">
                                            <img [src]="item" alt="结构图" (click)="bigimg('templateImg')"/>
                                            <div class="img-desc">{{activeImgList.title}}结构图</div>
                                        </div>
                                        <div style="border-top: 1px solid #ccc;position: absolute;bottom: 4px;"></div>
                                    </div>
                                    <div class="img-box MImg">
                                        <img [src]="activeImgList.img" alt="实物图" (click)="bigimg('MImg')"/>
                                        <div class="img-desc">{{activeImgList.title}}实物图</div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xs-6 module">
                                <div style="height: 100%;overflow: auto;">
                                    <ul  class="measureInfoList">
                                    	<li *ngFor="let item of activeImgList.measureInfoList; let i = index" class="img-box" style="">
                                    	    <img [src]="item.imageUrl" [alt]="item.name" (click)="bigimg('measureInfoList')"/>
                                    	    <div class="img-desc">
                                    	        <span>{{i+1}}、</span>
                                    	        <span>{{item.name}}：</span>
                                    	        <span>{{item.length}}mm</span>
                                    	    </div>
                                    	</li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- 量车尺寸图片查看 弹窗end-->
    
    <!-- 量车编辑   弹窗-->
    <section bsModal #CarMeasureModal="bs-modal" id="CarMeasureModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg" style="width: 1000px;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="closecarMeasureModal(CarMeasureModal)" aria-label="Close"><span aria-hidden="true">&times;</span></button>     
                    <h4 class="modal-title">编辑量车</h4>
                </div>
                <form id="carMeasureForm"  class="form-horizontal" role="form" novalidate="novalidate" >
                    <div class="modal-body">
                        <div class="row form-horizontal" *ngIf="editRowData && editRowData.carNumber">
                            <div class="form-group col-xs-6">
                                <label class="control-label col-xs-5">车牌号码</label>
                                <div class="col-xs-7" >
                                    <input  class="form-control" name="carNumber" id="carNumberFrom" [(ngModel)]='editRowData.carNumber'/>
                                </div>
                            </div>
                            <div class="form-group col-xs-6">
                                <label class="control-label col-xs-5">公司名称</label>
                                <div class="col-xs-7">
                                    <sa-company-tree  companyTreeId="companyTreeForm" [Height]="32" [companyNameValue]="editRowData.companyName" [companyIdValue]="editRowData.companyId" (companySelected)="companySelectedForm($event)"></sa-company-tree>
                                </div>
                            </div>
                            <div class="form-group col-xs-6">
                                <label class="control-label col-xs-5">车头品牌</label>
                                <div class="col-xs-7" >
                                    <input class="form-control" name="carHeadBrand" autocomplete="off" [(ngModel)]='editRowData.carHeadBrand' placeholder="车头品牌"/>
                                </div>
                            </div>
                            <div class="form-group col-xs-6" *ngIf="editRowData.useTypeL2 == '0211'">
                                <label class="control-label col-xs-5">上桶速度[秒]</label>
                                <div class="col-xs-7" >
                                    <input class="form-control" name="upBucketTime" autocomplete="off" [(ngModel)]='editRowData.upBucketTime' placeholder="上桶速度"/>
                                </div>
                            </div>
                            <div class="form-group col-xs-6" *ngIf="editRowData.useTypeL2 == '0211'">
                                <label class="control-label col-xs-5">下桶速度[秒]</label>
                                <div class="col-xs-7" >
                                    <input class="form-control" name="downBucketTime" autocomplete="off" [(ngModel)]='editRowData.downBucketTime' placeholder="下桶速度"/>
                                </div>
                            </div>
                            <!--<div class="form-group col-xs-12">
                                <label class="control-label col-xs-3">车尾架子<sup>*</sup></label>
                                <div class="col-xs-9" >
                                    <input class="form-control" name="emptyLoadTime" autocomplete="off" [(ngModel)]='editRowData.emptyLoadTime' placeholder="进厂时间[格式yyyy-mm-dd hh:ii:ss]" />
                                </div>
                            </div>-->
                            <div class="form-group col-xs-6" *ngIf="editRowData.useTypeL2 == '0213'">
                                <label class="control-label col-xs-5">铁板到链条距离[mm]</label>
                                <div class="col-xs-7" >
                                    <input class="form-control" name="fixDistance" autocomplete="off" [(ngModel)]='editRowData.fixDistance' placeholder="铁板到链条距离" />
                                </div>
                            </div>
                            <div class="form-group col-xs-6" *ngIf="editRowData.useTypeL2 == '0213'">
                                <label class="control-label col-xs-5">链条宽度[mm]</label>
                                <div class="col-xs-7" >
                                    <input class="form-control" name="chainWidth" autocomplete="off" [(ngModel)]='editRowData.chainWidth' placeholder="链条宽度" />
                                </div>
                            </div>
                            <div style="border-top: 1px solid #ccc;margin-bottom: 20px;clear: both;"></div>
                            <div class="form-group col-xs-6" *ngFor="let item of editRowData.measureInfoList; let i = index" [attr.data-index]="i">
                                <label class="control-label col-xs-5">{{i+1}}、{{item.name}}[mm]</label>
                                <div class="col-xs-7" >
                                    <input class="form-control" [name]="'measure'+(i+1)" autocomplete="off" [(ngModel)]='item.length' [attr.placeholder]="item.name" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" (click)="closecarMeasureModal(CarMeasureModal)">取消</button>
                        <button type="button" class="btn btn-primary" (click)="carMeasureSubmit(CarMeasureModal)">确认</button>
                    </div>
                </form>
            </div>
    
    
        </div>
    </section>
    <!-- 量车编辑 弹窗end-->
    <!-- 审核    弹窗-->
    <div bsModal #auditModal="bs-modal" id="auditModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelAudit(auditModal)" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
                    <h4 class="modal-title">量车审核</h4>
                </div>
                <div class="modal-body">
                    <div class="row form-horizontal">
                        <div class="form-group col-xs-12">
                            <label class="control-label col-xs-4 col-sm-2">审核状态<sup>*</sup></label>
                            <div class="col-xs-10">
                                <label class="radio radio-inline">
                                    <input type="radio" class="radiobox" [(ngModel)]='auditForm.status' value='1' name="auditPass">
                                    <span>审核通过</span>
                                </label>
                                <label class="radio radio-inline">
                                    <input type="radio" class="radiobox" [(ngModel)]='auditForm.status' value='2' name="auditNoPass">
                                    <span>审核不通过</span>
                                </label>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="control-label col-xs-4 col-sm-2">审核意见</label>
                            <div class="col-xs-10">
                                <textarea class="form-control" [(ngModel)]='auditForm.describe' rows="3" cols="30" placeholder="审核意见..."></textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" (click)="cancelAudit(auditModal)">取消</button>
                    <button type="button" class="btn btn-primary" (click)="auditSubmit(auditModal)">确认</button>
                </div>
            </div>
        </div>
    </div>
    <!--审核  end-->
    <!-- 导出    弹窗-->
    <div bsModal #exportProjectModal="bs-modal" id="auditModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelexportProject(exportProjectModal)" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
                    <h4 class="modal-title">导出加工</h4>
                </div>
                <div class="modal-body">
                    <div class="row form-horizontal">
                        <div class="form-group col-xs-12">
                            <label class="control-label col-xs-3">公司名称<sup>*</sup></label>
                            <div class="col-xs-9">
                                <sa-company-tree  companyTreeId="companyTreeForm2" [Height]="32"  (companySelected)="companySelectedForm2($event)"></sa-company-tree>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="control-label col-xs-3">量车时间<sup>*</sup></label>
                            <div class="col-xs-9">
                                <table-select-date [notInit]='true' [specifyId]='specifyId' (outerTime)="getSelectTimeForm($event)" ></table-select-date>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                                <label class="control-label col-xs-3">车型<sup>*</sup></label>
                                <div class="col-xs-9" >
                                    <select class="form-control" name="useTypeL2" [(ngModel)]='exportProjectForm.useTypeL2'>
                                        <option value="">请选择</option>
                                        <option value="0213">侧挂链条</option>
                                        <option value="0214">侧挂拉杆</option>
                                        <option value="0211">后挂双桶</option>
                                    </select>
                                </div>
                            </div>
                    </div>
                    <div>
                        <p class="note">
                                                        注：1、加工统计表：导出的表格，将按照上面的筛选条件，统计所有需要加工的零件类型及数量，方便发给加工厂按量加工。
                            2、项目明细表：导出的表格，将按照上面的筛选条件，列出所有车辆的对应的零件规格明细，方便根据项目分发物料。
                        </p>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" (click)="exportProject(exportProjectModal,'1')">导出加工统计表</button>
                    <button type="button" class="btn btn-primary" (click)="exportProject(exportProjectModal,'2')">导出项目明细表</button>
                </div>
            </div>
        </div>
    </div>
    <!--导出  end-->
    <!-- 匹配详情    弹窗-->
    <div bsModal #matchDetailModal="bs-modal" id="auditModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="closeMatchDetailModal(matchDetailModal)" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
                    <h4 class="modal-title">{{matchDetailTitle}}零件加工方案</h4>
                </div>
                <div class="modal-body">
                    <div class="row form-horizontal">
                        <div class="table_scroll">
                            <table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                <thead>
                                    <tr>
                                        <th>图纸编号</th>
                                        <th>零件类型</th>
                                        <th>零件名称</th>
                                        <th>零件规格</th>
                                        <th>材料规格</th>
                                        <th>加工数量</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr *ngFor="let row of matchDetailData; let i = index" [attr.data-index]="i">
                                        <td>
                                            <span *ngIf="row.number">{{row.number}}</span>
                                            <span *ngIf="!row.number" class="red">无方案</span>
                                        </td>
                                        <td>{{row.componentType}}</td>
                                        <td>{{row.componentName}}</td>
                                        <td>{{row.componentSize}}</td>
                                        <td>{{row.material}}</td>
                                        <td>{{row.count}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--匹配详情  end-->
    
</div>